<%@ page import="net.dgg.tmd.foundation.platform.session.SessionManager" %>
<%@ page import="net.dgg.framework.tac.spring.context.DggSpringContext" %>
<%@ page import="net.dgg.tmd.foundation.platform.user.entity.UserEntity" %>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
    pageContext.setAttribute("basePath", basePath);
    pageContext.setAttribute("rootUrl", basePath);
%>
<c:set var="basePath" value="${basePath}"/>
<meta charset="UTF-8">
<script>
    document.domain = '${siteDomain}';
    var sysInfo = {};
    sysInfo.basePath = getLocalPath();//系统根路径
    sysInfo.baseStaticUrl = "${baseStaticUrl}";
    sysInfo.gatewayFile = "${gatewayFile}";
    sysInfo.uploadFile = "${uploadFile}";
    sysInfo.getFileId = "${getFileId}";
    sysInfo.deleteFile = "${deleteFile}";
    sysInfo.download = "${download}";

    var cmsBaseUrl = "${cmsBaseUrl}";
    var orfApiUrl = "${orfApiUrl}";
    var uploadBaseUrl = "${uploadBaseUrl}";
    var ucApiUrl = "${ucApiUrl}";
    var busBaseUrl = "${busBaseUrl}";
    sysInfo.cmsBaseUrl = cmsBaseUrl;
    sysInfo.ucApiUrl = ucApiUrl;

    function getLocalPath() {
        //获取当前网址，如： http://localhost:8083/uimcardprj/share/meun.jsp
        var curWwwPath = window.document.location.href;
        //获取主机地址之后的目录，如： /uimcardprj/share/meun.jsp
        var pathName = window.document.location.pathname;
        var pos = curWwwPath.indexOf(pathName);
        //获取主机地址，如： http://localhost:8083
        var localhostPaht = curWwwPath.substring(0, pos);
        return localhostPaht;
    }
</script>

<%--<link rel="stylesheet" href="${baseStaticUrl}/dggui/dggui-3.0/css/dggui.css">--%>
<link rel="stylesheet" href="${baseStaticUrl}/dggui/dggui-3.0/css/dggui.css">
<link rel="stylesheet" href="${baseStaticUrl}/dggui/dggui-3.0/pages/financingSC/editNode/editNode.css">

